package com.wanmait.houlang.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.wanmait.houlang.mapper.ScScoreProMapper;
import com.wanmait.houlang.pojo.DTO;
import com.wanmait.houlang.pojo.ScScorePro;
import com.wanmait.houlang.service.ScScoreProService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class ScScoreProServiceImpl implements ScScoreProService {
    @Resource
    private ScScoreProMapper scScoreProMapper;
    @Override
    public void insert(ScScorePro object) {

    }

    @Override
    public void delete(Integer id) {

    }

    @Override
    public void delete(String ids) {

    }

    @Override
    public void update(ScScorePro object) {

    }

    @Override
    public ScScorePro findById(Integer id) {
        return null;
    }

    @Override
    public List<ScScorePro> findAll() {
        return null;
    }

    @Override
    public PageInfo<ScScorePro> findAll(int pageNum, int pageSize, ScScorePro object) {
        return null;
    }

    @Override
    public PageInfo<ScScorePro> findScScoreProByScore( Integer pageNum, Integer pageSize, DTO dto) {
        PageHelper.startPage(pageNum,pageSize);
        List<ScScorePro> scScorePros= scScoreProMapper.findScScoreProByScore(dto);
        PageInfo<ScScorePro> scScoreProPageInfo = new PageInfo<>(scScorePros);
        return scScoreProPageInfo;
    }
}
